Law of thought